package com.dwaynema.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@Component
@AllArgsConstructor
@NoArgsConstructor
public class ArticleDto {

    private Long article_id;

    private String title;

    private String summary;

    private String content;

    private String text_content;

    private String cover;

    private Integer type;

    private Integer views;

    private Integer likes;

    private Integer comments;

    private Boolean appreciable;

    private Boolean commentable;

    private Boolean top;

    private Boolean recommend;

    private Boolean published;

    private Integer sort;

    private String author_id;

    private Long category_id;

    private Long tag_id;

    private Integer status;

    //    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String create_time;

    //    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String update_time;
}
